<?php
class Country
{
	private $countrys=array();
	
	public function getNameByCode($code)
	{
		return $this->countrys[$code];
	}
	
	public function BuilOptionCountry($select)
	{
		$return='<option value="">'.getLang('Select').'</option>';
		foreach ($this->countrys as $key =>$vl)
		{
			if($key==$select)
			{
				$return.='<option value="'.$key.'" selected>'.$vl.'</option>';
			}else {
				$return.='<option value="'.$key.'" >'.$vl.'</option>';
			}
		}
		return $return;
	}
	
	function Country()
	{
		$this->countrys["AF"] ="Afghanistan";
		$this->countrys["AL"] ="Albania";
		$this->countrys["DZ"] ="Algeria";
		$this->countrys["AS"] ="American Samoa";
		$this->countrys["AD"] ="Andorra";
		$this->countrys["AO"] ="Angola";
		$this->countrys["AI"] ="Anguilla";
		$this->countrys["AQ"] ="Antarctica";
		$this->countrys["AG"] ="Antigua and Barbuda";
		$this->countrys["AR"] ="Argentina";
		$this->countrys["AM"] ="Armenia";
		$this->countrys["AW"] ="Aruba";
		$this->countrys["AU"] ="Australia";
		$this->countrys["AT"] ="Austria";
		$this->countrys["AZ"] ="Azerbaijan";
		$this->countrys["BS"] ="Bahamas";
		$this->countrys["BH"] ="Bahrain";
		$this->countrys["BD"] ="Bangladesh";
		$this->countrys["BB"] ="Barbados";
		$this->countrys["BY"] ="Belarus";
		$this->countrys["BE"] ="Belgium";
		$this->countrys["BZ"] ="Belize";
		$this->countrys["BJ"] ="Benin";
		$this->countrys["BM"] ="Bermuda";
		$this->countrys["BT"] ="Bhutan";
		$this->countrys["BO"] ="Bolivia";
		$this->countrys["BA"] ="Bosnia and Herzegowina";
		$this->countrys["BW"] ="Botswana";
		$this->countrys["BV"] ="Bouvet Island";
		$this->countrys["BR"] ="Brazil";
		$this->countrys["IO"] ="British Indian Ocean Territory";
		$this->countrys["BN"] ="Brunei Darussalam";
		$this->countrys["BG"] ="Bulgaria";
		$this->countrys["BF"] ="Burkina Faso";
		$this->countrys["BI"] ="Burundi";
		$this->countrys["KH"] ="Cambodia";
		$this->countrys["CM"] ="Cameroon";
		$this->countrys["CA"] ="Canada";
		$this->countrys["CV"] ="Cape Verde";
		$this->countrys["KY"] ="Cayman Islands";
		$this->countrys["CF"] ="Central African Republic";
		$this->countrys["TD"] ="Chad";
		$this->countrys["CL"] ="Chile";
		$this->countrys["CN"] ="China";
		$this->countrys["CX"] ="Christmas Island";
		$this->countrys["CC"] ="Cocos (Keeling) Islands";
		$this->countrys["CO"] ="Colombia";
		$this->countrys["KM"] ="Comoros";
		$this->countrys["CD"] ="Congo, Democratic Republic Of (was Zaire)";
		$this->countrys["CG"] ="Congo, People's Republic of";
		$this->countrys["CK"] ="Cook Islands";
		$this->countrys["CR"] ="Costa Rica";
		$this->countrys["CI"] ="Cote D'ivoire";
		$this->countrys["HR"] ="Croatia (local name: Hrvatska)";
		$this->countrys["CU"] ="Cuba";
		$this->countrys["CY"] ="Cyprus";
		$this->countrys["CZ"] ="Czech Republic";
		$this->countrys["DK"] ="Denmark";
		$this->countrys["DJ"] ="Djibouti";
		$this->countrys["DM"] ="Dominica";
		$this->countrys["DO"] ="Dominican Republic";
		$this->countrys["TL"] ="East Timor";
		$this->countrys["EC"] ="Ecuador";
		$this->countrys["EG"] ="Egypt";
		$this->countrys["SV"] ="El Salvador";
		$this->countrys["GQ"] ="Equatorial Guinea";
		$this->countrys["ER"] ="Eritrea";
		$this->countrys["EE"] ="Estonia";
		$this->countrys["ET"] ="Ethiopia";
		$this->countrys["FK"] ="Falkland Islands (Malvinas)";
		$this->countrys["FO"] ="Faroe Islands";
		$this->countrys["FJ"] ="Fiji";
		$this->countrys["FI"] ="Finland";
		$this->countrys["FR"] ="France";
		$this->countrys["FX"] ="France, Metropolitan";
		$this->countrys["GF"] ="French Guiana";
		$this->countrys["PF"] ="French Polynesia";
		$this->countrys["TF"] ="French Southern Territories";
		$this->countrys["GA"] ="Gabon";
		$this->countrys["GM"] ="Gambia";
		$this->countrys["GE"] ="Georgia";
		$this->countrys["DE"] ="Germany";
		$this->countrys["GH"] ="Ghana";
		$this->countrys["GI"] ="Gibraltar";
		$this->countrys["GR"] ="Greece";
		$this->countrys["GL"] ="Greenland";
		$this->countrys["GD"] ="Grenada";
		$this->countrys["GP"] ="Guadeloupe";
		$this->countrys["GU"] ="Guam";
		$this->countrys["GT"] ="Guatemala";
		$this->countrys["GN"] ="Guinea";
		$this->countrys["GW"] ="Guinea-Bissau";
		$this->countrys["GY"] ="Guyana";
		$this->countrys["HT"] ="Haiti";
		$this->countrys["HM"] ="Heard and Mc Donald Islands";
		$this->countrys["HN"] ="Honduras";
		$this->countrys["HK"] ="Hong Kong";
		$this->countrys["HU"] ="Hungary";
		$this->countrys["IS"] ="Iceland";
		$this->countrys["IN"] ="India";
		$this->countrys["ID"] ="Indonesia";
		$this->countrys["IR"] ="Iran (Islamic Republic of)";
		$this->countrys["IQ"] ="Iraq";
		$this->countrys["IE"] ="Ireland";
		$this->countrys["IL"] ="Israel";
		$this->countrys["IT"] ="Italy";
		$this->countrys["JM"] ="Jamaica";
		$this->countrys["JP"] ="Japan";
		$this->countrys["JO"] ="Jordan";
		$this->countrys["KZ"] ="Kazakhstan";
		$this->countrys["KE"] ="Kenya";
		$this->countrys["KI"] ="Kiribati";
		$this->countrys["KP"] ="Korea, Democratic People's Republic of";
		$this->countrys["KR"] ="Korea, Republic of";
		$this->countrys["KW"] ="Kuwait";
		$this->countrys["KG"] ="Kyrgyzstan";
		$this->countrys["LA"] ="Lao People's Democratic Republic";
		$this->countrys["LV"] ="Latvia";
		$this->countrys["LB"] ="Lebanon";
		$this->countrys["LS"] ="Lesotho";
		$this->countrys["LR"] ="Liberia";
		$this->countrys["LY"] ="Libyan Arab Jamahiriya";
		$this->countrys["LI"] ="Liechtenstein";
		$this->countrys["LT"] ="Lithuania";
		$this->countrys["LU"] ="Luxembourg";
		$this->countrys["MO"] ="Macau";
		$this->countrys["MK"] ="Macedonia, The Former Yugoslav Republic of";
		$this->countrys["MG"] ="Madagascar";
		$this->countrys["MW"] ="Malawi";
		$this->countrys["MY"] ="Malaysia";
		$this->countrys["MV"] ="Maldives";
		$this->countrys["ML"] ="Mali";
		$this->countrys["MT"] ="Malta";
		$this->countrys["MH"] ="Marshall Islands";
		$this->countrys["MQ"] ="Martinique";
		$this->countrys["MR"] ="Mauritania";
		$this->countrys["MU"] ="Mauritius";
		$this->countrys["YT"] ="Mayotte";
		$this->countrys["MX"] ="Mexico";
		$this->countrys["FM"] ="Micronesia, Federated States of";
		$this->countrys["MD"] ="Moldova, Republic of";
		$this->countrys["MC"] ="Monaco";
		$this->countrys["MN"] ="Mongolia";
		$this->countrys["MS"] ="Montserrat";
		$this->countrys["MA"] ="Morocco";
		$this->countrys["MZ"] ="Mozambique";
		$this->countrys["MM"] ="Myanmar";
		$this->countrys["NA"] ="Namibia";
		$this->countrys["NR"] ="Nauru";
		$this->countrys["NP"] ="Nepal";
		$this->countrys["NL"] ="Netherlands";
		$this->countrys["AN"] ="Netherlands Antilles";
		$this->countrys["NC"] ="New Caledonia";
		$this->countrys["NZ"] ="New Zealand";
		$this->countrys["NI"] ="Nicaragua";
		$this->countrys["NE"] ="Niger";
		$this->countrys["NG"] ="Nigeria";
		$this->countrys["NU"] ="Niue";
		$this->countrys["NF"] ="Norfolk Island";
		$this->countrys["MP"] ="Northern Mariana Islands";
		$this->countrys["NO"] ="Norway";
		$this->countrys["OM"] ="Oman";
		$this->countrys["PK"] ="Pakistan";
		$this->countrys["PW"] ="Palau";
		$this->countrys["PS"] ="Palestinian Territory, occupied";
		$this->countrys["PA"] ="Panama";
		$this->countrys["PG"] ="Papua New Guinea";
		$this->countrys["PY"] ="Paraguay";
		$this->countrys["PE"] ="Peru";
		$this->countrys["PH"] ="Philippines";
		$this->countrys["PN"] ="Pitcairn";
		$this->countrys["PL"] ="Poland";
		$this->countrys["PT"] ="Portugal";
		$this->countrys["PR"] ="Puerto Rico";
		$this->countrys["QA"] ="Qatar";
		$this->countrys["RE"] ="Reunion";
		$this->countrys["RO"] ="Romania";
		$this->countrys["RU"] ="Russian Federation";
		$this->countrys["RW"] ="Rwanda";
		$this->countrys["KN"] ="Saint Kitts and Nevis";
		$this->countrys["LC"] ="Saint Lucia";
		$this->countrys["VC"] ="Saint Vincent and The Grenadines";
		$this->countrys["WS"] ="Samoa";
		$this->countrys["SM"] ="San Marino";
		$this->countrys["ST"] ="Sao Tome and Principe";
		$this->countrys["SA"] ="Saudi Arabia";
		$this->countrys["SN"] ="Senegal";
		$this->countrys["SC"] ="Seychelles";
		$this->countrys["SL"] ="Sierra Leone";
		$this->countrys["SG"] ="Singapore";
		$this->countrys["SK"] ="Slovakia (Slovak Republic)";
		$this->countrys["SI"] ="Slovenia";
		$this->countrys["SB"] ="Solomon Islands";
		$this->countrys["SO"] ="Somalia";
		$this->countrys["ZA"] ="South Africa";
		$this->countrys["GS"] ="South Georgia and The South Sandwich Islands";
		$this->countrys["ES"] ="Spain";
		$this->countrys["LK"] ="Sri Lanka";
		$this->countrys["SH"] ="St. Helena";
		$this->countrys["PM"] ="St. Pierre and Miquelon";
		$this->countrys["SD"] ="Sudan";
		$this->countrys["SR"] ="Suriname";
		$this->countrys["SJ"] ="Svalbard and Jan Mayen Islands";
		$this->countrys["SZ"] ="Swaziland";
		$this->countrys["SE"] ="Sweden";
		$this->countrys["CH"] ="Switzerland";
		$this->countrys["SY"] ="Syrian Arab Republic";
		$this->countrys["TW"] ="Taiwan";
		$this->countrys["TJ"] ="Tajikistan";
		$this->countrys["TZ"] ="Tanzania, United Republic Of";
		$this->countrys["TH"] ="Thailand";
		$this->countrys["TG"] ="Togo";
		$this->countrys["TK"] ="Tokelau";
		$this->countrys["TO"] ="Tonga";
		$this->countrys["TT"] ="Trinidad and Tobago";
		$this->countrys["TN"] ="Tunisia";
		$this->countrys["TR"] ="Turkey";
		$this->countrys["TM"] ="Turkmenistan";
		$this->countrys["TC"] ="Turks and Caicos Islands";
		$this->countrys["TV"] ="Tuvalu";
		$this->countrys["UG"] ="Uganda";
		$this->countrys["UA"] ="Ukraine";
		$this->countrys["AE"] ="United Arab Emirates";
		$this->countrys["GB"] ="United Kingdom";
		$this->countrys["US"] ="United States";
		$this->countrys["UM"] ="United States Minor Outlying Islands";
		$this->countrys["UY"] ="Uruguay";
		$this->countrys["UZ"] ="Uzbekistan";
		$this->countrys["VU"] ="Vanuatu";
		$this->countrys["VA"] ="Vatican City State (Holy City)";
		$this->countrys["VE"] ="Venezuela";
		$this->countrys["VN"] ="Viet Nam";
		$this->countrys["VG"] ="Virgin Islands (British)";
		$this->countrys["VI"] ="Virgin Islands (U.S.)";
		$this->countrys["WF"] ="Wallis and Futuna Islands";
		$this->countrys["EH"] ="Western Sahara";
		$this->countrys["YE"] ="Yemen";
		$this->countrys["YU"] ="Yugoslavia";
		$this->countrys["ZM"] ="Zambia";
		$this->countrys["ZW"] ="Zimbabwe";
	}
}


?>